Comparable

interface Comparable<in T>

Classes which inherit from this interface have a defined total ordering between their instances.

Functions

compareTo
Link copied to clipboard
abstract operator fun compareTo(other: T): Int

Compares this object with the specified object for order. Returns zero if this object is equal to the specified other object, a negative number if it's less than other, or a positive number if it's greater than other.

Inheritors

UByte
Link copied to clipboard
UInt
Link copied to clipboard
ULong
Link copied to clipboard
UShort
Link copied to clipboard
KotlinVersion
Link copied to clipboard
Boolean
Link copied to clipboard
Char
Link copied to clipboard
Enum
Link copied to clipboard
Byte
Link copied to clipboard
Short
Link copied to clipboard
Int
Link copied to clipboard
Long
Link copied to clipboard
Float
Link copied to clipboard
Double
Link copied to clipboard
String
Link copied to clipboard
Duration
Link copied to clipboard